import pagetool from '@/components/pageTools'
// 导入上传excel的组件
import upload from '@/components/uploadExcel'
// 导入全局的filter文件
import formatter from '@/filters'
// 导入全局的上传图片组件
import uploadImg from '@/components/uploadImg'
export default {
  install: function (Vue) {
    Vue.component(pagetool.name, pagetool)
    Vue.component(upload.name,upload)
    Vue.component(uploadImg.name,uploadImg)
    Object.keys(formatter).forEach(item => {
      Vue.filter(item, formatter[item])
    })
   
  }
}
